﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Leikjavefurinn;

namespace Leikjavefurinn.Repo
{
	public class TicTacToeRepo : ITicTacToeRepo
	{
		#region members
//		LeikjavefurinnEntities db = new LeikjavefurinnEntities();
        Leikjavefurinn.GameDBDataContext db = new GameDBDataContext();
		#endregion

		public IEnumerable<Game> getGame(string name)
		{
			var games = db.Games.Where(n => n.GameName == name);
			return games;
		}
	}
}